import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';

import Dashboard from '@v/dashboard/index.vue';
import Error from './error';
import Demo from './demo';

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      component: Dashboard
    },
    ...Error,
    ...Demo
  ]
});

router.beforeEach(() => {});
export default router;
